package com.ideaction.entity.giftcode;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@Document
public class GiftGroup {
    
    @Id
    private String id;
    
    private int groupId;
    
    private String name;
    
    private Date beginTime;//开始时间
    
    private Date endTime;//结束时间
    
    private int useCount;//已经使用次数
    
    private int totalCount;//该组总数
    
    private List<String> channelList = new ArrayList<String>();//可以使用该礼包码的渠道
}
